package pers.xiaojun.boot.module.system.controller.dict.vo.data;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import pers.xiaojun.boot.common.constants.DateTimePatternConstants;
import pers.xiaojun.boot.common.enums.CommonStatusEnum;
import pers.xiaojun.boot.common.pojo.PageParam;
import pers.xiaojun.boot.common.validation.constraints.InEnum;

import java.time.LocalDateTime;

/**
 * 字典数据分页/条件查询实体
 *
 * @author xiaojun
 * @since 2025-11-06
 */
@Schema(description = "字典数据分页/条件查询实体-VO")
@EqualsAndHashCode(callSuper = true)
@Data
public class DictDataQueryReqVO extends PageParam {

    @Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_user_sex")
    private String dictType;

    @Schema(description = "字典标签（模糊查询）", requiredMode = Schema.RequiredMode.REQUIRED, example = "性别")
    private String label;

    @Schema(description = "状态（0正常 1停用）", example = "0")
    @InEnum(value = CommonStatusEnum.class, message = "状态必须为 {value}")
    private Integer status;

}
